Reliability theory of aging and longevity